Summary of Template Language

Statements

procedure categoryName.procedureName
end procedureName

declare name: type [= expression]
import name: type
export name: type [= expression]

variable = expression
variable += expression
variable -= expression
variable++
variable--

item.procedureName (paramName = expression ...)

if booleanExpression
elsif booleanExpression
else
end if

for each categoryName
end for

for each item in list
end for

for each 'ABCD' resource
end for

while booleanExpression
end while

Operators

Types


Built-in functions

With a few exceptions, the built-in functions operate on a typed object. A call is of the form: object.function (arguments). For functions that take a single argument, the argument is an expression. For functions with more than one argument, the arguments are named.

Example:

declare source: file
source.create (name = "test")

Supplying a named argument is equivalent to declaring a temporary variable of the appropriate type. So the preceding example could be written as:

declare source: file
declare name: string = "test"
source.create ()

(no object)

file

graphic

stream

dictionary of {stream or categoryName}

list of int

list of string